package com.cloudkinto.service.stock.exportVo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.cloudkinto.enumType.stock.StockOrderTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class BoxFlowingOmsExportVo {

    @Excel(name = "操作时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @Excel(name = "箱类型号")
    private String sku;
    @ApiModelProperty("自定义箱条码")
    private String customizeBarcode;
    @Excel(name = "仓库")
    private String whName;
    @Excel(name = "批次号")
    private String innerBatchNo;
    @Excel(name = "变化量")
    private int bookQuantity;
    @Excel(name = "剩余总库存")
    private Integer closeQty;
    @Excel(name = "单据类型")
    private String orderType;
    @Excel(name = "关联单据号")
    private String noteNo;

    public String getOrderType() {
        return StockOrderTypeEnum.getDesc(orderType);
    }
}
